package com.cq.cqmall.product.feign;

import com.cq.common.to.es.SkuEsModel;
import com.cq.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 搜索Feign服务
 *
 * @author 程崎
 * @since 2022/10/11
 */
@FeignClient("cq-mall-search")
public interface SearchFeignService {
    /**
     * 产品状态
     * 上架商品
     *
     * @param skuEsModels sku es模型
     * @return {@link R}<{@link Object}>
     */
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
